home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
var
/
arpwatch
/
bihourly
< prev
next >
Wrap
Text File
|
2006-06-30
|
449b
|
30 lines
#!/bin/sh
# @(#) $Header: bihourly,v 1.1 96/11/07 17:39:23 leres Exp $ (LBL)
#
# bihourly arpwatch job
#
PATH=$PATH:/usr/local/sbin
export PATH
#
cd /var/lib/arpwatch
#
list=`cat list`
cname=`cat cname`
errs=/tmp/bihourly.$$
#
alist=""
for r in $list; do \
arpfetch $r $cname > $r 2> $errs
if test -s $errs; then
echo "arpfetch $r failed:"
sed -e 's/^/ /' $errs
continue
fi
alist="$alist $r"
done
#
rm -f $errs
arpsnmp $alist
#
exit 0